<?php $alerts = $CI->session->flashdata('alerts');?>
<?php if(isset($alerts) && $alerts):?>

   <?php if( isset($alerts['success'])):?>
        <div class="alert alert-block alert-success">
            <button type="button" class="close" data-dismiss="alert">
            <i class="ace-icon fa fa-times"></i>
            </button>
            <?php echo $alerts['success'];?>
        </div>
    <?php elseif(  isset($alerts['error']) ):?>
        <div class="alert alert-block alert-danger">
             <button class="close" data-dismiss="alert" type="button">
             <i class="ace-icon fa fa-times"></i></button>
             <?php echo $alerts['error'];?>
        </div>
    <?php endif?>
<?php endif;?>
